home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 2
/
Gekikoh Dennoh Club Vol. 2 (Japan).7z
/
Gekikoh Dennoh Club Vol. 2 (Japan) (Track 01).bin
/
tools
/
cd2pcmt
/
source.lzh
/
CDC_.MAC
< prev
next >
Wrap
Text File
|
1996-02-01
|
1KB
|
74 lines
CDC macro callname
moveq.l #callname,d0
trap #5
endm
_CDC_CHK_ macro
.local _CC1,_CC2,_CC3
movem.l d0/a0/a1,-(sp)
suba.l a1,a1
moveq #$81,d0
trap #15
movea.l d0,a1
movea.l $25*4.w,a0 *一つ前のポインタ
cmpa.l #$00F00000,a0
bcc _CC2
cmp.l #'CDC_',-8(a0)
bne _CC2
cmp.l #'trap',-4(a0)
bne _CC2
moveq #$81,d0
trap #15
moveq #-1,d0 *常駐
bra _CC3
_CC2:
moveq #$81,d0
trap #15
moveq #0,d0 *非常駐
_CC3:
movem.l (sp)+,d0/a0/a1
.endm
*---------------------------------------------------
* ドライバー常駐チェック
* trap5のベクタアドレス-8から'CDC_trap'があるかをチェック
* (アドレス+2から各ルーチンアドレスが列ぶ)
* マクロ _CDC_CHK_ が用意してある(USERモードで使うこと)
*
* _CDC_CHK_
* beq 非常駐
* bne 常駐
*
_CDC_VERSION equ $00
_CDC_INIT equ $01
_CDC_STAT equ $02
_CDC_TRACKS equ $03
_CDC_SCSI_CHK equ $04
_CDC_RELED equ $05
_CDC_INKEY equ $07
_CDC_PROG equ $08
_CDC_PROGIN equ $09
_CDC_PROGOUT equ $0A
_CDC_PROGTIME equ $0F
_CDC_PLAY equ $10
_CDC_PAUSE equ $11
_CDC_RESUME equ $12
_CDC_MVPLAY equ $13
_CDC_BGM equ $14
_CDC_STOP equ $15
_CDC_DRIVE equ $30
_CDC_MODE equ $31
_CDC_KEYMODE equ $32
_CDC_LED equ $33
_CDC_TIMING equ $34
_CDC_POWER equ $35
_CDC_TRACKMODE equ $36
_CDC_KEYCANSEL equ $37
_CDC_TIMELED equ $38
_CDC_LEDXY equ $39
_CDC_SCSIID equ $3a